package com.xing.Menu.Entity;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * @author xingxing
 *
 */
@Entity
@Table(name="T_Menu")
public class Menu implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1769808960844125727L;
	/**
	 * 序列化 随机生成 作为标识存在，用来在缓存中找回
	 */
	@Id
	@GeneratedValue
	@Column(name="mid",nullable=false)
	private String mid;
	@Column
	private String mname;
	@Column
	private String describe;
	@Column
	private String fid;
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getMname() {
		return mname;
	}
	public void setMname(String mname) {
		this.mname = mname;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public String getFid() {
		return fid;
	}
	public void setFid(String fid) {
		this.fid = fid;
	}
	
}
